package com.weishi.tcp.callback;

import java.nio.channels.SocketChannel;

public interface TCPSercallBack {
    void iniResult(boolean rs, Integer port);//tcpserver初始化结果

    void disconnected(SocketChannel SocketClient, String address);//连接已经断开

    void mssageArrived(byte[] buffer, SocketChannel sc);//有数据到达

    void hasconnect(SocketChannel SocketClient);//连接上了

    /**
     * 回复客户
     */
    void replyClient();
}
